package com.wcx.application.service.Impl;

import com.wcx.application.domian.BossBean;
import com.wcx.application.domian.PositionBean;
import com.wcx.application.mapper.BossMapper;
import com.wcx.application.mapper.PositionMapper;
import com.wcx.application.service.BossService;
import com.wcx.application.service.PositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PositionServiceImpl implements PositionService {
    @Autowired
    PositionMapper positionMapper;

    @Override
    public List<PositionBean> getList() {
        return positionMapper.getList();
    }

    @Override
    public int update(PositionBean positionBean) {
        return positionMapper.update(positionBean);
    }

    @Override
    public int delete(int id) {
        return positionMapper.delete(id);
    }


    @Override
    public int create(PositionBean positionBean) {
        return positionMapper.create(positionBean);
    }

    @Override
    public List<PositionBean> searchList(PositionBean positionBean) {
        return positionMapper.searchList(positionBean);
    }



}
